.class public Lcom/brixd/niceapp/util/SettingUtils;
.super Ljava/lang/Object;
.source "SettingUtils.java"


# static fields
.field public static final CONFIG_APP_PROMOTE:Ljava/lang/String; = "ConfigAppPromote"

.field public static final MENU_APP_COMMNUNITY:Ljava/lang/String; = "zuimei.community"

.field public static final MENU_APP_DAILY:Ljava/lang/String; = "zuimei.daily"

.field public static final MENU_APP_GAME:Ljava/lang/String; = "zuimei.game"

.field public static final MENU_APP_PROMOTE:Ljava/lang/String; = "zuimei.promote"

.field public static final MENU_APP_TEST:Ljava/lang/String; = "zuimei.neice"

.field private static final MENU_COVER_URL:Ljava/lang/String; = ".cover_url"

.field private static final MENU_UPDATE_LATEST:Ljava/lang/String; = ".latest"

.field private static final MENU_UPDATE_PREV:Ljava/lang/String; = ".prev"

.field private static final NICE_GAME_NAME:Ljava/lang/String; = "NiceGameName"

.field private static final NICE_GAME_VISIBILITY:Ljava/lang/String; = "NiceGameVisibility"

.field public static final NICE_GOODS_NAME:Ljava/lang/String; = "NiceGoodsName"

.field public static final NICE_GOODS_VISIBILITY:Ljava/lang/String; = "NiceGoodsVisibility"

.field public static final NICE_TEST_NAME:Ljava/lang/String; = "NiceTestName"

.field public static final NICE_TEST_VISIBILITY:Ljava/lang/String; = "NiceTestVisibility"

.field public static final PERSONAL_BG_COLORS:Ljava/lang/String; = "PersonalBgColors"

.field public static final PUSH_SETTING:Ljava/lang/String; = "PushSetting"

.field public static final SIDE_MENU_SETTING:Ljava/lang/String; = "SideMenuSetting"

.field public static final VIDEO_PLAY_SETTING:Ljava/lang/String; = "VideoPlaySetting"

.field private static final mContext:Landroid/content/Context;

.field public static final menus:[Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .registers 3

    .prologue
    .line 37
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    sput-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    .line 51
    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "zuimei.neice"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "zuimei.game"

    aput-object v2, v0, v1

    sput-object v0, Lcom/brixd/niceapp/util/SettingUtils;->menus:[Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 23
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$000()Landroid/content/Context;
    .registers 1

    .prologue
    .line 23
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method public static getAllCommentReplyHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 377
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c003f

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 378
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.all.comment.reply.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getAllDetailCommentReplyHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 382
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0046

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 383
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.all.comment.detail.toolbar.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getCommunityCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 412
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0046

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 413
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.community.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getCommunityPubContentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 427
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c00c0

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 428
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.community.publish.content.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getCommunityPubSelectAppHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 417
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c00e8

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 418
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.community.publish.app.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getCommunityPubSelectPictureHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 432
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0005

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 433
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.community.publish.photo.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getCommunityPubSelectTagHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 422
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0006

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 423
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.community.publish.tag.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getCommunityPubSubtitleHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 437
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c00c1

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 438
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.community.publish.content.subtitle.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getCommunityToolbarCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 407
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0046

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 408
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.community.detail.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getDailyCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 372
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c003f

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 373
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.daily.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getDailyToolbarCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 367
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0046

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 368
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.daily.detail.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getGameCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 392
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0046

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 393
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.game.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getGameToolbarCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 387
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0046

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 388
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.game.detail.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getMenuCoverUrl(Ljava/lang/String;)Ljava/lang/String;
    .registers 4
    .param p0, "key"    # Ljava/lang/String;

    .prologue
    .line 274
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ".cover_url"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static getMenuSettingModel()Lcom/brixd/niceapp/model/SideMenuSettingModel;
    .registers 8

    .prologue
    .line 232
    sget-object v5, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v5}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v5

    const-string v6, "SideMenuSetting"

    const-string v7, ""

    invoke-virtual {v5, v6, v7}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 233
    .local v4, "settingStr":Ljava/lang/String;
    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_16

    .line 234
    const/4 v1, 0x0

    .line 252
    :cond_15
    :goto_15
    return-object v1

    .line 237
    :cond_16
    const/4 v1, 0x0

    .line 239
    .local v1, "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    :try_start_17
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v4}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 240
    .local v3, "settingObject":Lorg/json/JSONObject;
    const-string v5, "type"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v5

    if-lez v5, :cond_15

    const-string v5, "title"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-nez v5, :cond_15

    .line 241
    new-instance v2, Lcom/brixd/niceapp/model/SideMenuSettingModel;

    invoke-direct {v2}, Lcom/brixd/niceapp/model/SideMenuSettingModel;-><init>()V
    :try_end_35
    .catch Lorg/json/JSONException; {:try_start_17 .. :try_end_35} :catch_52

    .line 242
    .end local v1    # "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    .local v2, "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    :try_start_35
    const-string v5, "type"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v2, v5}, Lcom/brixd/niceapp/model/SideMenuSettingModel;->setType(I)V

    .line 243
    const-string v5, "title"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Lcom/brixd/niceapp/model/SideMenuSettingModel;->setTitle(Ljava/lang/String;)V

    .line 244
    const-string v5, "detail"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Lcom/brixd/niceapp/model/SideMenuSettingModel;->setDetail(Ljava/lang/String;)V
    :try_end_50
    .catch Lorg/json/JSONException; {:try_start_35 .. :try_end_50} :catch_58

    move-object v1, v2

    .end local v2    # "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    .restart local v1    # "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    goto :goto_15

    .line 247
    .end local v3    # "settingObject":Lorg/json/JSONObject;
    :catch_52
    move-exception v0

    .line 248
    .local v0, "e":Lorg/json/JSONException;
    :goto_53
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 249
    const/4 v1, 0x0

    goto :goto_15

    .line 247
    .end local v0    # "e":Lorg/json/JSONException;
    .end local v1    # "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    .restart local v2    # "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    .restart local v3    # "settingObject":Lorg/json/JSONObject;
    :catch_58
    move-exception v0

    move-object v1, v2

    .end local v2    # "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    .restart local v1    # "model":Lcom/brixd/niceapp/model/SideMenuSettingModel;
    goto :goto_53
.end method

.method public static getNiceGameName()Ljava/lang/String;
    .registers 5

    .prologue
    const v4, 0x7f0c00af

    .line 165
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "NiceGameName"

    sget-object v3, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 166
    .local v0, "name":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_21

    .line 167
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 169
    :cond_21
    return-object v0
.end method

.method public static getNiceGoodsName()Ljava/lang/String;
    .registers 5

    .prologue
    const v4, 0x7f0c00b0

    .line 125
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "NiceGoodsName"

    sget-object v3, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 126
    .local v0, "name":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_21

    .line 127
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 129
    :cond_21
    return-object v0
.end method

.method public static getNiceTestName()Ljava/lang/String;
    .registers 5

    .prologue
    const v4, 0x7f0c00b1

    .line 145
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "NiceTestName"

    sget-object v3, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 146
    .local v0, "name":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_21

    .line 147
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 149
    :cond_21
    return-object v0
.end method

.method public static getPersonalBgColors()Ljava/util/List;
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 181
    const/4 v1, 0x0

    .line 182
    .local v1, "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    sget-object v7, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v7}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v7

    const-string v8, "PersonalBgColors"

    const-string v9, ""

    invoke-virtual {v7, v8, v9}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 184
    .local v0, "colors":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v7

    if-nez v7, :cond_36

    .line 185
    new-instance v1, Ljava/util/ArrayList;

    .end local v1    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 187
    .restart local v1    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    :try_start_1a
    new-instance v6, Lorg/json/JSONArray;

    invoke-direct {v6, v0}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    .line 188
    .local v6, "jsonArray":Lorg/json/JSONArray;
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
    :try_end_24
    .catch Lorg/json/JSONException; {:try_start_1a .. :try_end_24} :catch_4f

    .line 189
    .end local v1    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    .local v2, "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_25
    :try_start_25
    invoke-virtual {v6}, Lorg/json/JSONArray;->length()I

    move-result v7

    if-ge v5, v7, :cond_35

    .line 190
    invoke-virtual {v6, v5}, Lorg/json/JSONArray;->optString(I)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v2, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_32
    .catch Lorg/json/JSONException; {:try_start_25 .. :try_end_32} :catch_54

    .line 189
    add-int/lit8 v5, v5, 0x1

    goto :goto_25

    :cond_35
    move-object v1, v2

    .line 198
    .end local v2    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    .end local v5    # "i":I
    .end local v6    # "jsonArray":Lorg/json/JSONArray;
    .restart local v1    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    :cond_36
    :goto_36
    if-eqz v1, :cond_3e

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v7

    if-nez v7, :cond_4e

    .line 199
    :cond_3e
    sget-object v7, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    const/high16 v8, 0x7f060000

    invoke-virtual {v7, v8}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v3

    .line 200
    .local v3, "defaultColors":[Ljava/lang/String;
    invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    .line 203
    .end local v3    # "defaultColors":[Ljava/lang/String;
    :cond_4e
    return-object v1

    .line 193
    :catch_4f
    move-exception v4

    .line 194
    .local v4, "e":Lorg/json/JSONException;
    :goto_50
    invoke-virtual {v4}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_36

    .line 193
    .end local v1    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    .end local v4    # "e":Lorg/json/JSONException;
    .restart local v2    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    .restart local v5    # "i":I
    .restart local v6    # "jsonArray":Lorg/json/JSONArray;
    :catch_54
    move-exception v4

    move-object v1, v2

    .end local v2    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    .restart local v1    # "colorsList":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    goto :goto_50
.end method

.method public static getSearchAppHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 442
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c00e7

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 443
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.search.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getSignonCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 468
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0096

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 469
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.signon.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getSignonCommentReplyHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 473
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0095

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 474
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.signon.comment.reply.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getSignonFavorHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 463
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0097

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 464
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.signon.favor.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getSignonMeiyixiaHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 458
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0098

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 459
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.signon.meiyixia.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getSignonPublishAppHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 453
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0099

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 454
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.signon.publish.app.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getSignonSideMenuHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 448
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c009a

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 449
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.signon.sidemenu.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getTestCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 402
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0046

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 403
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.neice.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static getTestToolbarCommentHint()Ljava/lang/String;
    .registers 3

    .prologue
    .line 397
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    const v2, 0x7f0c0046

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 398
    .local v0, "defaultValue":Ljava/lang/String;
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "zuimei.neice.detail.comment.hint"

    invoke-virtual {v1, v2, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public static isMenuHasUpdates(Ljava/lang/String;)Z
    .registers 11
    .param p0, "name"    # Ljava/lang/String;

    .prologue
    const-wide/16 v8, 0x0

    .line 352
    sget-object v4, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ".prev"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5, v8, v9}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;J)J

    move-result-wide v2

    .line 353
    .local v2, "timePrev":J
    sget-object v4, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ".latest"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5, v8, v9}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;J)J

    move-result-wide v0

    .line 355
    .local v0, "timeLatest":J
    cmp-long v4, v0, v2

    if-lez v4, :cond_42

    .line 356
    const/4 v4, 0x1

    .line 358
    :goto_41
    return v4

    :cond_42
    const/4 v4, 0x0

    goto :goto_41
.end method

.method private static isModuleVisiable(Lorg/json/JSONObject;)Z
    .registers 7
    .param p0, "setting"    # Lorg/json/JSONObject;

    .prologue
    .line 97
    const/4 v4, 0x0

    .line 98
    .local v4, "visiable":Z
    const-string v5, "status"

    invoke-virtual {p0, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v2

    .line 100
    .local v2, "status":I
    const/4 v5, 0x1

    if-ne v2, v5, :cond_27

    .line 101
    const-string v5, "version"

    invoke-virtual {p0, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v3

    .line 102
    .local v3, "versionCode":I
    sget-object v5, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v5}, Lcom/zuiapps/suite/utils/app/AppUtil;->getVersionCode(Landroid/content/Context;)I

    move-result v0

    .line 103
    .local v0, "appVersionCode":I
    const-string v5, "operator"

    invoke-virtual {p0, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 104
    .local v1, "operator":Ljava/lang/String;
    const-string v5, "eq"

    invoke-virtual {v5, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_28

    if-ne v0, v3, :cond_28

    .line 105
    const/4 v4, 0x1

    .line 113
    .end local v0    # "appVersionCode":I
    .end local v1    # "operator":Ljava/lang/String;
    .end local v3    # "versionCode":I
    :cond_27
    :goto_27
    return v4

    .line 106
    .restart local v0    # "appVersionCode":I
    .restart local v1    # "operator":Ljava/lang/String;
    .restart local v3    # "versionCode":I
    :cond_28
    const-string v5, "lt"

    invoke-virtual {v5, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_34

    if-ge v0, v3, :cond_34

    .line 107
    const/4 v4, 0x1

    goto :goto_27

    .line 108
    :cond_34
    const-string v5, "gt"

    invoke-virtual {v5, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_27

    if-le v0, v3, :cond_27

    .line 109
    const/4 v4, 0x1

    goto :goto_27
.end method

.method public static isPushEnable()Z
    .registers 3

    .prologue
    .line 211
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "PushSetting"

    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static isVideoPlayOnlyWifiEnable()Z
    .registers 3

    .prologue
    .line 219
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "VideoPlaySetting"

    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static niceGameVisible()Z
    .registers 3

    .prologue
    .line 157
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceGameVisibility"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static niceGoodsVisible()Z
    .registers 3

    .prologue
    .line 117
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceGoodsVisibility"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static niceTestVisible()Z
    .registers 3

    .prologue
    .line 137
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceTestVisibility"

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/Boolean;)Z

    move-result v0

    return v0
.end method

.method public static parseAppRecommendModel()Lcom/brixd/niceapp/model/AppRecommendModel;
    .registers 10

    .prologue
    const/4 v7, 0x0

    .line 300
    sget-object v6, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v6}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v6

    const-string v8, "ConfigAppPromote"

    const-string v9, ""

    invoke-virtual {v6, v8, v9}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 302
    .local v4, "jsonStr":Ljava/lang/String;
    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v6

    if-eqz v6, :cond_17

    move-object v5, v7

    .line 323
    :cond_16
    :goto_16
    return-object v5

    .line 308
    :cond_17
    :try_start_17
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v4}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 309
    .local v3, "jo":Lorg/json/JSONObject;
    invoke-static {v3}, Lcom/brixd/niceapp/model/AppRecommendModel;->parseAppRecommendModel(Lorg/json/JSONObject;)Ljava/util/List;

    move-result-object v0

    .line 310
    .local v0, "appRecommendModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/AppRecommendModel;>;"
    if-eqz v0, :cond_28

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v6

    if-eqz v6, :cond_2a

    :cond_28
    move-object v5, v7

    .line 311
    goto :goto_16

    .line 314
    :cond_2a
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_2b
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v6

    if-ge v2, v6, :cond_44

    .line 315
    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/brixd/niceapp/model/AppRecommendModel;

    .line 316
    .local v5, "m":Lcom/brixd/niceapp/model/AppRecommendModel;
    sget-object v6, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    iget-object v8, v5, Lcom/brixd/niceapp/model/AppRecommendModel;->packageName:Ljava/lang/String;

    invoke-static {v6, v8}, Lcom/zuiapps/suite/utils/app/AppUtil;->isAppInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_16

    .line 314
    add-int/lit8 v2, v2, 0x1

    goto :goto_2b

    .line 321
    .end local v5    # "m":Lcom/brixd/niceapp/model/AppRecommendModel;
    :cond_44
    const/4 v6, 0x0

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/brixd/niceapp/model/AppRecommendModel;
    :try_end_4b
    .catch Lorg/json/JSONException; {:try_start_17 .. :try_end_4b} :catch_4d

    move-object v5, v6

    goto :goto_16

    .line 322
    .end local v0    # "appRecommendModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/AppRecommendModel;>;"
    .end local v2    # "i":I
    .end local v3    # "jo":Lorg/json/JSONObject;
    :catch_4d
    move-exception v1

    .local v1, "e":Lorg/json/JSONException;
    move-object v5, v7

    .line 323
    goto :goto_16
.end method

.method public static parseAppStoreOpenOrderModel()Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;
    .registers 7

    .prologue
    const/4 v3, 0x0

    .line 328
    sget-object v4, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v4

    const-string v5, "ConfigAppPromote"

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 330
    .local v2, "jsonStr":Ljava/lang/String;
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_16

    .line 340
    :goto_15
    return-object v3

    .line 336
    :cond_16
    :try_start_16
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 338
    .local v1, "jo":Lorg/json/JSONObject;
    invoke-static {v1}, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;->parseAppStoreOpenOrderModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;
    :try_end_1e
    .catch Lorg/json/JSONException; {:try_start_16 .. :try_end_1e} :catch_20

    move-result-object v3

    goto :goto_15

    .line 339
    .end local v1    # "jo":Lorg/json/JSONObject;
    :catch_20
    move-exception v0

    .line 340
    .local v0, "e":Lorg/json/JSONException;
    goto :goto_15
.end method

.method private static parseConfig(Lorg/json/JSONArray;)V
    .registers 5
    .param p0, "settings"    # Lorg/json/JSONArray;

    .prologue
    .line 79
    if-eqz p0, :cond_72

    invoke-virtual {p0}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-lez v2, :cond_72

    .line 80
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_9
    invoke-virtual {p0}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v0, v2, :cond_72

    .line 81
    invoke-virtual {p0, v0}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v1

    .line 82
    .local v1, "setting":Lorg/json/JSONObject;
    const-string v2, "nicegoods"

    const-string v3, "module"

    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_34

    .line 83
    const-string v2, "name"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/SettingUtils;->setNiceGoodsName(Ljava/lang/String;)V

    .line 84
    invoke-static {v1}, Lcom/brixd/niceapp/util/SettingUtils;->isModuleVisiable(Lorg/json/JSONObject;)Z

    move-result v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/SettingUtils;->setNiceGoodsVisible(Z)V

    .line 80
    :cond_31
    :goto_31
    add-int/lit8 v0, v0, 0x1

    goto :goto_9

    .line 85
    :cond_34
    const-string v2, "neice"

    const-string v3, "module"

    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_53

    .line 86
    const-string v2, "name"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/SettingUtils;->setNiceTestName(Ljava/lang/String;)V

    .line 87
    invoke-static {v1}, Lcom/brixd/niceapp/util/SettingUtils;->isModuleVisiable(Lorg/json/JSONObject;)Z

    move-result v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/SettingUtils;->setNiceTestVisible(Z)V

    goto :goto_31

    .line 88
    :cond_53
    const-string v2, "game"

    const-string v3, "module"

    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_31

    .line 89
    const-string v2, "name"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/SettingUtils;->setNiceGameName(Ljava/lang/String;)V

    .line 90
    invoke-static {v1}, Lcom/brixd/niceapp/util/SettingUtils;->isModuleVisiable(Lorg/json/JSONObject;)Z

    move-result v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/SettingUtils;->setNiceGameVisible(Z)V

    goto :goto_31

    .line 94
    .end local v0    # "i":I
    .end local v1    # "setting":Lorg/json/JSONObject;
    :cond_72
    return-void
.end method

.method public static parseDefaultHints(Lorg/json/JSONArray;)V
    .registers 6
    .param p0, "ja"    # Lorg/json/JSONArray;

    .prologue
    .line 278
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    invoke-virtual {p0}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v1, v4, :cond_2a

    .line 279
    invoke-virtual {p0, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    .line 280
    .local v2, "jo":Lorg/json/JSONObject;
    const-string v4, "key"

    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 281
    .local v3, "key":Ljava/lang/String;
    const-string v4, "hint"

    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 283
    .local v0, "hint":Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_20

    .line 278
    :goto_1d
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 287
    :cond_20
    sget-object v4, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v4

    invoke-virtual {v4, v3, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1d

    .line 289
    .end local v0    # "hint":Ljava/lang/String;
    .end local v2    # "jo":Lorg/json/JSONObject;
    .end local v3    # "key":Ljava/lang/String;
    :cond_2a
    return-void
.end method

.method public static parseMenuList(Lorg/json/JSONObject;)V
    .registers 11
    .param p0, "menuLatestJson"    # Lorg/json/JSONObject;

    .prologue
    .line 256
    const-string v7, "menu_list"

    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 257
    .local v3, "jsonArray":Lorg/json/JSONArray;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_7
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v7

    if-ge v1, v7, :cond_9a

    .line 258
    invoke-virtual {v3, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    .line 259
    .local v2, "jo":Lorg/json/JSONObject;
    const-string v7, "name"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 260
    .local v6, "name":Ljava/lang/String;
    const-string v7, "latest_data_time"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v4

    .line 261
    .local v4, "latestDataTime":J
    const-string v7, "cover_url"

    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 263
    .local v0, "coverUrl":Ljava/lang/String;
    sget-object v7, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v7}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v7

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, ".prev"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->hasPrefWithKey(Ljava/lang/String;)Z

    move-result v7

    if-nez v7, :cond_5e

    .line 264
    sget-object v7, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v7}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v7

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, ".prev"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8, v4, v5}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;J)V

    .line 267
    :cond_5e
    sget-object v7, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v7}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v7

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, ".latest"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8, v4, v5}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;J)V

    .line 269
    sget-object v7, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v7}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v7

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, ".cover_url"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8, v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 257
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_7

    .line 271
    .end local v0    # "coverUrl":Ljava/lang/String;
    .end local v2    # "jo":Lorg/json/JSONObject;
    .end local v4    # "latestDataTime":J
    .end local v6    # "name":Ljava/lang/String;
    :cond_9a
    return-void
.end method

.method public static parseSettings(Lorg/json/JSONObject;)V
    .registers 9
    .param p0, "jsonObject"    # Lorg/json/JSONObject;

    .prologue
    .line 54
    const-string v7, "colors"

    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    .line 55
    .local v1, "colors":Lorg/json/JSONArray;
    invoke-virtual {v1}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/brixd/niceapp/util/SettingUtils;->setPersonalBgColors(Ljava/lang/String;)V

    .line 57
    const-string v7, "user"

    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v6

    .line 58
    .local v6, "userJsonObject":Lorg/json/JSONObject;
    if-eqz v6, :cond_18

    .line 59
    invoke-static {v6}, Lcom/brixd/niceapp/service/UserService;->saveUserModel(Lorg/json/JSONObject;)V

    .line 62
    :cond_18
    const-string v7, "config"

    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    .line 63
    .local v4, "settings":Lorg/json/JSONArray;
    invoke-static {v4}, Lcom/brixd/niceapp/util/SettingUtils;->parseConfig(Lorg/json/JSONArray;)V

    .line 65
    const-string v7, "about_config"

    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    .line 66
    .local v5, "sideMenuSetting":Lorg/json/JSONObject;
    invoke-static {v5}, Lcom/brixd/niceapp/util/SettingUtils;->parseSideMenuSetting(Lorg/json/JSONObject;)V

    .line 68
    const-string v7, "side_menu"

    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    .line 69
    .local v3, "menuLatestJson":Lorg/json/JSONObject;
    invoke-static {v3}, Lcom/brixd/niceapp/util/SettingUtils;->parseMenuList(Lorg/json/JSONObject;)V

    .line 71
    const-string v7, "default_hints"

    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    .line 72
    .local v2, "defaultHints":Lorg/json/JSONArray;
    invoke-static {v2}, Lcom/brixd/niceapp/util/SettingUtils;->parseDefaultHints(Lorg/json/JSONArray;)V

    .line 74
    const-string v7, "app_recommend"

    invoke-virtual {p0, v7}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    .line 75
    .local v0, "appPromoteJo":Lorg/json/JSONObject;
    invoke-static {v0}, Lcom/brixd/niceapp/util/SettingUtils;->storeAppRecommend(Lorg/json/JSONObject;)V

    .line 76
    return-void
.end method

.method private static parseSideMenuSetting(Lorg/json/JSONObject;)V
    .registers 5
    .param p0, "jsonObject"    # Lorg/json/JSONObject;

    .prologue
    .line 223
    if-eqz p0, :cond_19

    .line 224
    const-string v1, "item_on_sidebar"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    .line 225
    .local v0, "setting":Lorg/json/JSONObject;
    if-eqz v0, :cond_19

    .line 226
    sget-object v1, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "SideMenuSetting"

    invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 229
    .end local v0    # "setting":Lorg/json/JSONObject;
    :cond_19
    return-void
.end method

.method public static setMenuVisited(Ljava/lang/String;)V
    .registers 9
    .param p0, "name"    # Ljava/lang/String;

    .prologue
    const-wide/16 v6, 0x0

    .line 345
    sget-object v2, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ".latest"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3, v6, v7}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;J)J

    move-result-wide v0

    .line 346
    .local v0, "time":J
    cmp-long v2, v0, v6

    if-lez v2, :cond_3f

    .line 347
    sget-object v2, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ".prev"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3, v0, v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;J)V

    .line 349
    :cond_3f
    return-void
.end method

.method public static setNiceGameName(Ljava/lang/String;)V
    .registers 3
    .param p0, "name"    # Ljava/lang/String;

    .prologue
    .line 173
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceGameName"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 174
    return-void
.end method

.method public static setNiceGameVisible(Z)V
    .registers 3
    .param p0, "visible"    # Z

    .prologue
    .line 161
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceGameVisibility"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 162
    return-void
.end method

.method public static setNiceGoodsName(Ljava/lang/String;)V
    .registers 3
    .param p0, "name"    # Ljava/lang/String;

    .prologue
    .line 133
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceGoodsName"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 134
    return-void
.end method

.method public static setNiceGoodsVisible(Z)V
    .registers 3
    .param p0, "visible"    # Z

    .prologue
    .line 121
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceGoodsVisibility"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 122
    return-void
.end method

.method public static setNiceTestName(Ljava/lang/String;)V
    .registers 3
    .param p0, "name"    # Ljava/lang/String;

    .prologue
    .line 153
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceTestName"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 154
    return-void
.end method

.method public static setNiceTestVisible(Z)V
    .registers 3
    .param p0, "visible"    # Z

    .prologue
    .line 141
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "NiceTestVisibility"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 142
    return-void
.end method

.method public static setPersonalBgColors(Ljava/lang/String;)V
    .registers 3
    .param p0, "colors"    # Ljava/lang/String;

    .prologue
    .line 177
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "PersonalBgColors"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 178
    return-void
.end method

.method public static setPushEnable(Z)V
    .registers 3
    .param p0, "enable"    # Z

    .prologue
    .line 207
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "PushSetting"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 208
    return-void
.end method

.method public static setVideoPlayOnlyWifiEnable(Z)V
    .registers 3
    .param p0, "enable"    # Z

    .prologue
    .line 215
    sget-object v0, Lcom/brixd/niceapp/util/SettingUtils;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v0

    const-string v1, "VideoPlaySetting"

    invoke-virtual {v0, v1, p0}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->setPref(Ljava/lang/String;Z)V

    .line 216
    return-void
.end method

.method public static storeAppRecommend(Lorg/json/JSONObject;)V
    .registers 2
    .param p0, "jo"    # Lorg/json/JSONObject;

    .prologue
    .line 292
    new-instance v0, Lcom/brixd/niceapp/util/SettingUtils$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/util/SettingUtils$1;-><init>(Lorg/json/JSONObject;)V

    .line 296
    invoke-virtual {v0}, Lcom/brixd/niceapp/util/SettingUtils$1;->start()V

    .line 297
    return-void
.end method
